package com.globalwave.common.event
{
	import flash.events.MouseEvent;
	
	import mx.messaging.messages.IMessage;
	import mx.rpc.AsyncToken;

	public class RecordEvent extends MouseEvent
	{
		public var record : Object ;
		
        public static const ADD_SUCCESS : String = "addSuccess" ; 
        public static const UPDATE_SUCCESS : String = "recordUpdateSuccess" ; 
        public static const DELETE_SUCCESS : String = "recordDeleteSuccess" ; 
		
		public function RecordEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=true, result:Object=null, token:AsyncToken=null, message:IMessage=null)
		{
			super(type);
		}
		
		public function copy() : RecordEvent {
		    var result : RecordEvent = new RecordEvent(type) ;
		    result.record = this.record ;
		    return result ;
		}
		
	}
}